<div class="choose-league-title"> 选择杯赛
<select name="select-league" id="select-league">
<?php foreach($this->cups as $cup){?>
  <option value ="<?php echo $cup['cup_id'] ?>"
          <?php if($this->actuel_cup_id ==$cup['cup_id']){
          	    echo 'selected="selected"';
          }?>><?php echo $cup['name'] ?></option>
 <?php }?>
</select>

</div>

<div class="league-title"><?php echo $this->actuel_cup_name;?></div>

<?php foreach($this->detail_teams as $group => $games){?>
<div class="cup-group-name"><?php echo $group?> 组 :</div>
<div class="table-league-summary-title" >
    <div class="float-left summary-team-name" style = "margin-left : 49px;">球队</div>
    <div class="float-left summary-match">场数</div>
	<div class="float-left summary-score">积分</div>
	<div class="float-left summary-win">胜</div>
	<div class="float-left summary-tie">平</div>
	<div class="float-left summary-lose">负</div>
	<div class="float-left summary-got">进球</div>
	<div class="float-left summary-lost">失球</div>
	<div class="float-left summary-diff">净胜球</div>


</div>
<div class="table-league">
	<?php $i = 1;?>
<?php foreach($games as $team){?>
    <div class="float-left" style="clear : both ; width : 20px;"><?php echo $i++;?></div>
    <div class="float-left" style="width : 30px"><img class="team_logo" src="/images/team_logo/<?php echo $team['logo']?>"/></div>
    <div class="float-left summary-team-name"><?php echo $team['team_name'] ;?></div>
    <div class="float-left summary-match"><?php echo (int)$team['match'] ;?></div>
	<div class="float-left summary-score"><?php echo (int)$team['score'] ;?></div>
	<div class="float-left summary-win"><?php echo (int)$team['win'] ;?></div>
	<div class="float-left summary-tie"><?php echo (int)$team['tie'] ;?></div>
	<div class="float-left summary-lose"><?php echo (int)$team['lose'] ;?></div>
	<div class="float-left summary-got"><?php echo (int)$team['got'] ;?></div>
	<div class="float-left summary-lost"><?php echo (int)$team['lost'] ;?></div>
	<div class="float-left summary-diff"><?php echo (int)$team['diff'] ;?></div>
<?php }?>
</div>

<?php }?>

<script type="text/javascript">
<!--//--><![CDATA[//><!--
$(document).ready(function() {
    $('#select-league').change(function(){
        window.location=window.location.pathname + '?cup_id='+$(this).val();

    }
    );

})

//--><!]]>
</script>


         